<jsp:root version="2.0" xmlns:jsp="http://java.sun.com/JSP/Page" xmlns:c="http://java.sun.com/jsp/jstl/core"
  xmlns:fmt="http://java.sun.com/jsp/jstl/fmt" xmlns:fn="http://java.sun.com/jsp/jstl/functions" xmlns:vetlabtags="urn:jsptagdir:/WEB-INF/tags/vetlab">
  <jsp:directive.tag isELIgnored="false" />
  <div class="bar">
    <c:forTokens var="item"
      items="index:Home Page;analisi:Analisi;listino:Listino;campioni:Raccolta e conservazione campioni;moduli:Modulistica;invio:Invio campioni;articoli:Informazioni scientifiche"
      delims=";">
      <c:set var="linkUriNoExt" value="/${fn:substringBefore(item, ':')}" />
      <c:set var="linkText" value="${fn:substringAfter(item, ':')}" />
      <c:choose>
        <c:when test="${fn:startsWith(uri, linkUriNoExt)}">
          <em>${linkText}</em>
        </c:when>
        <c:otherwise>
          <a href="${ctx}${linkUriNoExt}.html">${linkText}</a>
        </c:otherwise>
      </c:choose>
    </c:forTokens>
  </div>
</jsp:root>